$(document).ready(function(){
	
	$("#EDIT_TEAM").click(function(){
		var daContent = $('#daContent').val();
		var daId = $('#daId').val();
		$.ajax({			 
  			type: "post",
 			url: "work/MyAdvice_changStatusToYh.action",
 			data:{
 				  "daContent":daContent,"daId":daId
 				 },
  			success:showData
		 });	
	});
	
	function showData(data){	
		//alert(daContent);
		alert("回复成功");	
		$('#mainFrame',window.parent.document).attr('src','/ag/work/myadvice1.jsp');
	}

	$("#BACK_TEAM").click(function(){
		var daId = $('#daId').val();
		$.ajax({
	  		type: "post",
	 		url: "work/MyAdvice_changStatusToWh.action",
	 		data:{
				  "daId":daId
				 }
		});
		//window.location.replace("/ag/work/myadvice1.jsp");
		$('#tabFrame',window.parent.document).attr('src','/ag/work/myadvice1.jsp');
	});
});
